<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<title>简单的评分</title>
		<style>
			.box{
				width: 60px;
				height: 20px;
				background:SlateBlue;
				
			}
			
		</style>
		<div id="app">
			<div>{{score}}分</div>
			<div :style="{width: '60px',height:5+score+'px',background:'SlateBlue'}"></div>
			<button @click="add()">{{name}}</button>
	</head>
	<body>
		<script>
			new Vue({
				el:"#app",
				data:{
					name:"张三+5",
					score:0
				},
				methods:{
					add:function(){
						this.score+=5
					}
				}
			})
		</script>
	</body>
</html>
